package com.donger.business.upms.service;

/**
 * @author 7326
 */
public interface SmsService {

    /**
     * 验证码生成
     * @param phone phone
     * @return String
     */
    String sendSmsCode(String phone);
    /**
     * 校验验证码
     * @param phone phone
     * @param code code
     * @return boolean
     */
    boolean validate(String phone, String code);
}
